﻿#pragma once
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include"Contact.h"
//̬˳
#if 0
#define N 100
struct Seqlist
{
	int arr[N];
	int size;
};
#endif
//̬˳
typedef peoinfo SLDateType;
typedef struct Seqlist
{
	SLDateType* arr;
	int size;
	int capacity;
}SL;
//typedef struct Seqlist SL;
void SLInit(SL* ps);
void SLcheckcapacity(SL * ps);
void SLPushback(SL* ps, SLDateType x);
void SLPushfront(SL* ps, SLDateType x);
void SLprint(SL s);
void SLpopback(SL* ps);
void SLPopfront(SL* ps);
void SLInsert(SL* ps, int pos, SLDateType x);
void SLErase(SL* ps, int pos);
void SLDestroy(SL* ps);